﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin_MasterPage.master" AutoEventWireup="true" CodeFile="ThemSanPham.aspx.cs" Inherits="Admin_ThemSanPham" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <div id="allthemsanpham">
        <h3 style="color:Red; font-size:large;">Thêm sản phẩm</h3>
         <div id="contentthemsanpham" style="border:1px solid black;"> 
            
            <table border="1" id="table_name" visible="false" cellspacing="0" >
                    <tr>
                        <td style="font-size:16px; color:#8B4513; width:200px;">Tên sản phẩm</td>
                        <td style="width:400px;"><asp:TextBox ID="txt_tensp" runat="server" Width="400px"></asp:TextBox></td>
                        <td style="color:Red;"><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Không được bỏ trống" ControlToValidate="txt_tensp"></asp:RequiredFieldValidator></td>
                    </tr>
                    <!-- End tr tensanpham-->
                    <tr>
                        <td style="font-size:16px; color:#8B4513; width:200px;">Loại sản phẩm</td>
                        <td style="width:400px;"><asp:DropDownList ID="ddl_loaisp" runat="server" Width="200px"></asp:DropDownList></td>
                        <td></td>
                    </tr>
                    
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Nhà sản xuất</td>
                    <td style="width:400px;"><asp:DropDownList ID="ddl_nhasx" runat="server" Width="250px"></asp:DropDownList></td>
                    <td></td>
                    </tr> 

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">CPU</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_CPU" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>
                    
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">RAM</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_ram" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>
                    
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">HDD</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_hdd" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>
                 
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Card màn hình</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_cardmanhinh" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">CD\DVD</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_CD" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Màn hình</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_manhinh" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Mạng</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_mang" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>
                    
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Tích hợp</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_tichhop" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Trọng lượng</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_trongluong" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Pin</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_pin" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>
             
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Hệ điều hành</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_hdh" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Thời gian bảo hành</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_tgia_bhanh" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Khuyến mãi</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_khuyenmai" runat="server" Width="400px"></asp:TextBox></td>
                    <td></td>
                    </tr>

                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Giá</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_gia" runat="server" Width="400px"></asp:TextBox></td>
                    <td><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txt_gia" ValidationExpression="([0-9])*" ErrorMessage="Giá phải là một số" 
                            ForeColor="Red"></asp:RegularExpressionValidator></td>
                    </tr>
                 
                    <tr>
                    <td style="font-size:16px; color:#8B4513; width:200px;">Số lượng nhập vào kho</td>
                    <td style="width:400px;"><asp:TextBox ID="txt_SoLuongSanPhamNhapVao" runat="server" Width="400px"></asp:TextBox></td>
                    <td><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="txt_SoLuongSanPhamNhapVao" ValidationExpression="([0-9])*" ErrorMessage="Số lượng phải là một số" 
                            ForeColor="Red"></asp:RegularExpressionValidator></td>
                    </tr>

                    <tr>
                        <td style="font-size:16px; color:#8B4513; width:200px;">Hình Ảnh</td>
                        <td style="width:400px;">
                            <div id="fileUploadarea">
                                <asp:FileUpload ID="FileUpload1" runat="server"/><br />
                            </div>
                            &nbsp;
                            <input style="display: block;" id="btnAddMoreImages" type="button" value="Thêm nhiều hình hơn" onclick="AddMoreImages();" />

                        </td>
                        <td></td>
                    </tr>
                    <!-- End tr hinhanh-->

                
                    <tr>
                        <td colspan="3">
                            <div style="margin-left:300px;">
                            <asp:Button CssClass="button" ID="ButtonUpload" runat="server" OnClick="btn_Insert_Click" Text="Thêm sản phẩm"  Height="25px" Width="135px"/>
                            <asp:HyperLink CssClass="button" ID="btn_TroVe" NavigateUrl="~/Admin/DanhSachSanPham.aspx" runat="server">Trở về</asp:HyperLink>
                            </div>
                        </td>
                    </tr>

                    <!-- End tr button them san pham-->
                </table>
        </div>
    </div>
</asp:Content>

